// github.com/VincentGarreau/particles.js
document.addEventListener(
  "DOMContentLoaded",
  function () {
    new SweetScroll({});
    particlesJS("particles-js", {
      particles: {
        number: { value: 160, density: { enable: !0, value_area: 500 } },
        color: { value: "#ffffff" },
        shape: {
          type: "circle",
          stroke: { width: 0, color: "#000000" },
          polygon: { nb_sides: 5 },
          image: { src: "img/github.svg", width: 100, height: 100 },
        },
        opacity: {
          value: 1,
          random: !0,
          anim: { enable: !0, speed: 3, opacity_min: 0, sync: !1 },
        },
        size: {
          value: 3,
          random: !0,
          anim: { enable: !1, speed: 1, size_min: 0.3, sync: !1 },
        },
        line_linked: {
          enable: !1,
          distance: 150,
          color: "#ffffff",
          opacity: 0.4,
          width: 1,
        },
        move: {
          enable: !0,
          speed: 3,
          direction: "none",
          random: !0,
          straight: !1,
          out_mode: "out",
          bounce: !1,
          attract: { enable: !1, rotateX: 600, rotateY: 600 },
        },
      },
      interactivity: {
        detect_on: "canvas",
        events: {
          onhover: { enable: !0, mode: "bubble" },
          onclick: { enable: !0, mode: "repulse" },
          resize: !0,
        },
        modes: {
          grab: { distance: 400, line_linked: { opacity: 1 } },
          bubble: { distance: 50, size: 70, duration: 2, opacity: 0, speed: 3 },
          repulse: { distance: 300, duration: 5 },
          push: { particles_nb: 4 },
          remove: { particles_nb: 2 },
        },
      },
      retina_detect: !0,
    });
  },
  !1
);
